package com.changgou.goods.feign;


import com.changgou.entity.Result;
import com.changgou.goods.pojo.Spu;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "goods-service")
@RequestMapping("/goods/spu")
public interface SpuFeign {


    @GetMapping("/{id}")
    public Result<Spu> findById(@PathVariable("id") Long id);


}
